<?php
/**************************************************************************
 * Naanal PHP Framework, Simple, Efficient and Developer Friendly
 * Ver 3.0, Copyright (C) <2010>  <Tamil Amuthan. R>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ************************************************************************/
?>
<script type="text/javascript">
$(function() {
    $("#user").validate({
        errorPlacement: function(error, element) {
        jQuery(element).css("border-color", "red");
        }
    });
});
</script>
<center>
    <form id="user" action="index.php">
    <input type="hidden" name="<?php echo $url_module_param; ?>" value="user" />
    <input type="hidden" name="<?php echo $url_action_param; ?>" value="insert" />
     <table>
          <tr><td>User Name<font color="red">*</font></td><td><input type="text" class="required input" name="userid"/></td><td></td><td>Address1</td><td><input type="text" class="input" name="address1" /></td></tr>
          <tr><td>PassWord<font color="red">*</font></td><td><input type="password" class="required input" name="password"/></td><td></td><td>Address2</td><td><input type="text" class="input" name="address2" /></td></tr>
          <tr><td>SSN</td><td><input type="text" class="input" name="ssn"/></td><td></td><td>City<font color="red">*</font></td><td><input type="text" class="required input" name="city" /></td></tr>
          <tr><td>First Name</td><td><input type="text" class="input" name="firstname"/></td><td></td><td>State<font color="red">*</font></td><td><input type="text" class="required input" name="state" /></td></tr>
          <tr><td>Middle Name</td><td><input type="text" class="input" name="middlename"/></td><td></td><td>Country</td><td><input type="text" class="required input" name="country" value="United States of America" /></td></tr>
          <tr><td>Last Name<font color="red">*</font></td><td><input type="text" class="required input" name="lastname"/></td><td></td><td>Zipcode<font color="red">*</font></td><td><input type="text" class="required input" name="zip"/></td></tr>
          <tr><td>Email<font color="red">*</font></td><td><input type="text" class="required input" name="email"/></td><td></td><td>Admin</td><td><input type="Checkbox" class="input" name="isadmin"/></td></tr>
          <tr><td>Landline</td><td><input type="text" class="input" name="landline"/></td><td></td><td><font color="red">*</font>Mobile</td><td><input type="text" class="required input" name="mobile"/></td></tr>
          <tr><td colspan="5"> <center><input type="submit" value="Submit" /></center></td></tr>
      </table>
    </form>
</center>
